from selenium.webdriver.common.by import By
from base import Base
class Page(Base):
    def sou(self):#第一种定位方法
        loc=(By.ID,'cn.xuexi.android:id/text')
        ele=self.find_ele_(loc)
        return ele
    def ss(self):#第二种定位方法
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele_(loc)
        return ele
    def an(self):
        loc=(By.ID,'cn.xuexi.android:id/tv_suggest_name')
        ele=self.find_ele_(loc)
        return ele
    def a(self):
        loc=(By.ID,'cn.xuexi.android:id/tv_suggest_name')
        ele=self.find_ele_(loc)
        return ele

    def qc(self):#第三种定位方法
        loc=(By.ACCESSINILITY_ID,'清除查询')
        ele=self.find_ele_(loc)
        return ele
    def aa(self):#第四种定位方法
        loc=(By.AMDROID_UIAUTOMATOR,'new UiSelector().className("android.widget.ImageView").instance(40)')
        ele=self.find_ele_(loc)
        return ele
    def qg(self):#第五种定位方法
        loc=(By.XPATH,'//android.view.View[@text="强国海报：2025年第12届世界运动会开幕"]')
        ele=self.find_ele_(loc)
        return ele
    def dz(self):
        loc=(By.ID,'like-icon')
        ele=self.find_ele_(loc)
        return ele
    def fh(self):
        loc=(By.XPATH,'//android.widget.LinearLayout[@resource-id="cn.xuexi.android:id/TOP_LAYER_VIEW_ID"]/android.widget.ImageView[1]')
        ele=self.find_ele_(loc)
        return ele
    def dy(self):
        loc=(By.XPATH,'//android.widget.LinearLayout[@resource-id="cn.xuexi.android:id/TOP_LAYER_VIEW_ID"]/android.widget.ImageView[1]')
        ele=self.find_ele_(loc)
        return ele
    def f(self):
        loc=(By.ID,'cn.xuexi.android:id/search_back')
        ele=self.find_ele_(loc)
        return ele
    def daya(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="要闻"]')
        ele=self.find_ele_(loc)
        return ele
    def duanyan(self):
        loc=(By.XPATH,'//android.view.View[@text="⁣“⁣学习强国⁣”⁣同学汇"]')
        ele=self.find_ele_(loc)
        return ele
    def ddy(self):
        loc=(By.XPATH,'//android.view.View[@text="强国海报：2025年第12届世界运动会开幕"]')
        ele=self.find_ele_(loc)
        return ele





